var express = require('express');
var multerUpload = require('../utils/multerfs')
var router = express.Router();
var { loginControl,logControl,operatorList,operatorUpdata,addOperator,delteOperatorById} = require('../controller/operatorController')

router.post('/login',loginControl);
router.get('/log',logControl);
router.get('/list',operatorList);
router.post('/edit',multerUpload.single('myfile'),operatorUpdata);
router.post('/add',multerUpload.single('myfile'),addOperator);
router.post('/delete',delteOperatorById);

module.exports = router;
